package com.pattern.factory.abstractfactory2.modern;

import com.pattern.factory.abstractfactory2.*;

/**
 * <p>
 *
 * </p>
 *
 * @author qingshan
 * @since 2020-07-19 21:40
 */
public class ModernFactory extends AbstractFactory {
    public Food createFood() {
        return new Bread_1();
    }

    public Vehicle createVehicle() {
        return new Car_1();
    }

    public Weapon createWeapon() {
        return new AK47_1();
    }
}
